import { baseUrl } from "../constants/url";
import {myReq} from "./utils";

export function signin(email, password, onSuccess, onErr) {
    myReq(`${baseUrl}/user/signin`, { email, password }, 'POST', onSuccess, onErr)
}

export function signup(email, username, password, onSuccess, onErr) {
    myReq(`${baseUrl}/user/signup`, { email, username, password }, 'POST', onSuccess, onErr)
}
